namespace KingerRobot.MexicoSailunMDC.Dao;
partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// 基础数据 -物料信息详情
    /// </summary>
    public DbSet<POProdMaterialInfo> ProdMaterialInfos { get; set; }
}

/// <summary>
/// 基础数据 -物料信息详情
/// 表[prod_material_Info]
/// </summary>
[Table("prod_material_Info")]
public class POProdMaterialInfo
{
    /// <summary>
    /// 主键，通过雪花算法生成
    /// 主键[prod_material_Info.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }
    /// <summary>
    /// [prod_material_Info.mes_id)]
    /// </summary>
    [Column("mes_id")]
    public string MesId { get; set; }
    /// <summary>
    /// SPEC码
    /// [prod_material_Info.spec)]
    /// </summary>
    [Column("spec")]
    public string Spec { get; set; }
    /// <summary>
    /// 物料编号 ITNBR
    /// [prod_material_Info.material_code)]
    /// </summary>
    [Column("material_code")]
    public string MaterialCode { get; set; }
    /// <summary>
    /// 物料名称 ITDSC
    /// [prod_material_Info.material_name)]
    /// </summary>
    [Column("material_name")]
    public string MaterialName { get; set; }
    /// <summary>
    /// 规格
    /// [prod_material_Info.material_inch)]
    /// </summary>
    [Column("material_inch")]
    public string MaterialInch { get; set; }
    /// <summary>
    /// 英寸
    /// [prod_material_Info.inch)]
    /// </summary>
    [Column("inch")]
    public string Inch { get; set; }
    /// <summary>
    /// 轮胎子口(内径) BORE
    /// [prod_material_Info.inside_diameter)]
    /// </summary>
    [Column("inside_diameter", TypeName ="decimal(18,3)")]
    public decimal? InsideDiameter { get; set; }
    /// <summary>
    /// 轮胎外径
    /// [prod_material_Info.outside_diameter)]
    /// </summary>
    [Column("outside_diameter", TypeName ="decimal(18,3)")]
    public decimal? OutsideDiameter { get; set; }
    /// <summary>
    /// 胎胚高度 HEIGHT
    /// [prod_material_Info.material_height)]
    /// </summary>
    [Column("material_height", TypeName ="decimal(18,3)")]
    public decimal? MaterialHeight { get; set; }
    /// <summary>
    /// 重量 WEIGHT
    /// [prod_material_Info.material_weight)]
    /// </summary>
    [Column("material_weight", TypeName ="decimal(18,3)")]
    public decimal? MaterialWeight { get; set; }
    /// <summary>
    /// 重量上限 UPPER
    /// [prod_material_Info.weight_upper)]
    /// </summary>
    [Column("weight_upper", TypeName ="decimal(18,3)")]
    public decimal? WeightUpper { get; set; }
    /// <summary>
    /// 重量下限 LOWER
    /// [prod_material_Info.weight_lower)]
    /// </summary>
    [Column("weight_lower", TypeName ="decimal(18,3)")]
    public decimal? WeightLower { get; set; }
    /// <summary>
    /// 单位
    /// [prod_material_Info.unit)]
    /// </summary>
    [Column("unit")]
    public string Unit { get; set; }
    /// <summary>
    /// 使用与否 USEYN
    /// [prod_material_Info.useyn)]
    /// </summary>
    [Column("useyn")]
    public string Useyn { get; set; }
    /// <summary>
    /// 过期时间（分钟）
    /// [prod_material_Info.expir_time)]
    /// </summary>
    [Column("expir_time")]
    public DateTime? ExpirTime { get; set; }
    /// <summary>
    /// [prod_material_Info.expir_duration)]
    /// </summary>
    [Column("expir_duration")]
    public int? ExpirDuration { get; set; }
    /// <summary>
    /// [prod_material_Info.win_max)]
    /// </summary>
    [Column("win_max")]
    public int? WinMax { get; set; }
    /// <summary>
    /// [prod_material_Info.win_min)]
    /// </summary>
    [Column("win_min")]
    public int? WinMin { get; set; }
    /// <summary>
    /// [prod_material_Info.sum_max)]
    /// </summary>
    [Column("sum_max")]
    public int? SumMax { get; set; }
    /// <summary>
    /// [prod_material_Info.sum_min)]
    /// </summary>
    [Column("sum_min")]
    public int? SumMin { get; set; }
    /// <summary>
    /// 批次时间（分钟）
    /// [prod_material_Info.batch_time)]
    /// </summary>
    [Column("batch_time")]
    public int? BatchTime { get; set; }
    /// <summary>
    /// 创建时间
    /// [prod_material_Info.create_time)]
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// [prod_material_Info.update_time)]
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// 是否可用 0:不可用  1:在用
    /// [prod_material_Info.use_flag)]
    /// </summary>
    [Column("use_flag")]
    public int? UseFlag { get; set; }
    /// <summary>
    /// 抽检比例如 20%
    /// [prod_material_Info.in_ration)]
    /// </summary>
    [Column("in_ration")]
    public string InRation { get; set; }
    /// <summary>
    /// 扫描总数 满100后归零
    /// [prod_material_Info.scan_num)]
    /// </summary>
    [Column("scan_num")]
    public int? ScanNum { get; set; }
    /// <summary>
    /// 入库数 累加
    /// [prod_material_Info.in_num)]
    /// </summary>
    [Column("in_num")]
    public int? InNum { get; set; }
}
